﻿@model PagingDataSet<BlogThread>
@{
    Layout = "app-home-2cols";
    Html.IncludeCss("~/Applications/Blog/Styles/app.css", ResourceRenderPriority.Last);
    Html.IncludeScript("~/Applications/Blog/Scripts/jquery.spb.blog.js", ResourceRenderPriority.Last);

    string categoryId = ViewData.Get<string>("categoryId", null);
}
@section Aside{
    @Html.Action("_Recommend", "ChannelBlog", new { topNum = 6, recommendTypeId = "10020101" })
    <div class="tn-box tn-widget tn-widget-content tn-corner-all">
        <div class="tn-box-header tn-widget-header tn-corner-top tn-border-bottom">
            <h3 class="tn-helper-reset">日志标签</h3>
        </div>
        <p class="tn-tags-hot">
            @Html.Action("_TagCloud", "Channel", new { tenantTypeId = TenantTypeIds.Instance().BlogThread(), Area = "Common" })
        </p>
    </div>
} 
<div class="tn-box tn-widget tn-widget-content tn-corner-all spb-blog-list">    
    <div class="tn-box-content tn-widget-content tn-corner-all">
        @if (Model != null && Model.Count() > 0) { 
            <div class=" spb-blog-list-wrap">
                <ul class="tn-list">
                    @foreach (var blogThread in Model)
                    {        
                        @Html.Partial("_BlogItemChannel", blogThread)
                    }
                   
                </ul>
                <div class="tn-pagination">
                    @Html.PagingButton(Model, PaginationMode.NumericNextPrevious)
                </div>
            </div>
         }else { 
            <div class="tn-no-data">暂无数据</div>
         }
        
   </div>     
</div>
          